var logger = Logger.getLogger();
var Piece = Class(
	{	img:function(){
			return this.id+"-"+this.color+".gif";
		},
		WHITE:"w", 
		BLACK:"b"
	}, 
	function(_color){
		this.color = _color;
		this.moved = false;
	}
);


var King =   Class( [ Piece, { id : "king" }   ]);
var Queen =  Class(	[ Piece, { id : "queen"}   ]);
var Bishop = Class( [ Piece, { id : "bishop" } ]);
var Knight = Class( [ Piece, { id : "knight" } ]);
var Rook =   Class( [ Piece, { id : "rook" }   ]);
var Pawn =   Class( [ Piece, { id : "pawn"}    ]);
